package org.example.mq.mqsever.core;

/**
 * Created with IntelliJ IDEA.
 * Description:做渐进主义的改良派,不做完没注意的速成派
 * User: XALEXC
 * Date: 2025-04-28
 * Time: 15:39
 */

/**
 * 这个类表示队列和交换机之间的关联关系
 */
public class Binding {
    private String exchangeName;
    private String queueName;
    // "对暗号"
    private String bindingKey;
    // Binding这个东西是依附于Exchange和Queue的
    // 也就是说对于持久化而言,如果Exchange和Queue任何一个没有持久化
    // 此时你针对Binging持久化是没有任何意义的.


    public String getExchangeName() {
        return exchangeName;
    }

    public void setExchangeName(String exchangeName) {
        this.exchangeName = exchangeName;
    }

    public String getQueueName() {
        return queueName;
    }

    public void setQueueName(String queueName) {
        this.queueName = queueName;
    }

    public String getBindingKey() {
        return bindingKey;
    }

    public void setBindingKey(String bindingKey) {
        this.bindingKey = bindingKey;
    }
}
